#import "IntroductionViewController.h"

@interface IntroductionViewController ()

@end

@implementation IntroductionViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIImageView *introductionView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"guide"]];
    introductionView.frame = SCREEN_BOUND;
    [self.view addSubview:introductionView];
    
    int logoX = (SCREEN_WIDTH)/3 ;
    int logoY = (SCREEN_HEIGHT*3)/4 ;
    int logoW = (SCREEN_WIDTH)/3 ;
    
    UIButton *inBtn1 = [UIButton new];
    inBtn1.frame = CGRectMake(logoX, logoY, logoW, 40);
    [inBtn1 setTitle:@"关闭窗口" forState:0];
    inBtn1.backgroundColor = GRAY_COLOR;
    [inBtn1 addTarget:self action:@selector(home) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:inBtn1];
    
}

-(void)home{
    //关闭当前页面,返回上一级页面
    [self dismissViewControllerAnimated:NO completion:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}



@end
